<div style="background:black;color:gold;text-align: center;padding:5px 0px;">
    鲜好货
</div>
<div><img style="width:100%;height:40px;" src="/images/liucheng.png"></div>
<div id="wrapperPresale" class="wrapperComman">
<div style="width:100%;">
<?php foreach ($this->productLists as $list) {?>
<div class="productBlock">
	<a href="/presalesku/details?id=<?php echo $list->id ?>">
		<div class="blockImg">
			<div class="proImg">
				<img src="<?php echo $list->imgurl?>">
			</div>
		</div>
		<div class="leftBlock">
			<div class="leftPrice">
				<?php
					if($list->onsale==1){
						echo '<span style="color:#E7100E;padding-left:10px;">￥</span><span style="color:#E7100E;font-size:1.3em;">'.$list->saleprice.'</span><span style="color:#9C9C9C;padding-left:10px;">￥</span><span style="color:#9C9C9C;">'.$list->price.'</span>';
					}else{
						echo '<span style="color:#E7100E;padding-left:10px;">￥</span><span style="color:#E7100E;font-size:1.3em;">'.$list->price.'</span>';
					}
				?>
			</div>
			<div class="leftDesc">
				<?php 
					if(!empty($list->feature)){
						echo '<span style="color:red;">【'.$list->feature.'】</span>';
					}
				?>
				<span style="padding-left:10px;"><?php echo $list->skuname?></span>
			</div><br>
		</div>
	</a>
	<div class="RightBlock">
		<div style="font-size:0.9em;padding:8px 0px;">已售<?php echo $list->selledNum;?>份</div>
		<a href="/presalesku/details?id=<?php echo $list->id ?>">
			<div class="buyNow">
				<div style="background-color:white;color:#EC1415;width:100%;border:1px solid #EC1415;border-radius:4px;">返现<?php echo $list->cashBack;?>元</div>
				<div>立刻购买</div>
			</div>
		</a>
	</div>
	<div class="clear"></div>
</div>
<?php }?>
</div>
</div>
<script type="text/javascript">
	$(document).ready(function() {
		var proImgWidth = $('.proImg').width();
		var imgHeight = parseInt(proImgWidth)*350/710+'px';
		$('.proImg img').css('height',imgHeight);
		$('.wrapperComman').css('top','70px');

		var myScroll;
		myScroll = new iScroll('wrapperPresale', { scrollbarClass: 'myScrollbar' });
	});
</script>